package com.xia.springboot.controller.dto;

import com.xia.springboot.entity.Item;
import com.xia.springboot.entity.Order;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderDetail {
  private Order order;
  private List<QuantityItem> itemList;

  @Data
  @AllArgsConstructor
  @NoArgsConstructor
  public static class QuantityItem{
    private Item item;
    private int quantity;
  }
}
